def input_number(reminder):
    result = input(reminder)
    if (not result.isdigit()):
        result = input(reminder)
    return int(result)


stu_number = input_number("请输入总的学生数:")
min = input_number("请输入分组最小人数：")
max = input_number("请输入分组最大人数:")
zu = 1
for i in range(min, max + 1):
    zheng = int(stu_number / i)
    yu = stu_number % i
    if (stu_number % i == 0):
        print("第{}组:\t共{}组，每组{}人".format(zu, zheng, i))
        zu = zu + 1
    else:
        if (i != max):
            if (yu < zheng):
                print("第{}组:\t共{}组，其中{}组{}人，{}组{}人".format(
                    zu, zheng, zheng - yu, i, yu, i + 1))
                zu = zu + 1
